package cn.com.chengmandian.bike.mapper;

import cn.com.chengmandian.bike.dto.RideOrderDto;
import cn.com.chengmandian.bike.model.EbRideOrder;
import cn.com.chengmandian.bike.model.vo.RideOrderVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 电单车运营-骑行订单 Mapper 接口
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-12-10
 */
@Mapper
public interface EbRideOrderMapper extends BaseMapper<EbRideOrder> {

    IPage<RideOrderVo> selectOrderList(Page<Object> page, @Param("rideOrder") RideOrderDto rideOrderDto);

    RideOrderVo selectOrder(@Param("orderNo") String orderNo, @Param("memberId") Integer memberId);

    List<EbRideOrder> getTodayFreeOrder(@Param("memberId") Integer memberId);

    List<EbRideOrder> getInitOrderList(@Param("bikeId") Integer bikeId, @Param("memberId")Integer memberId);
}
